Sending smart alerts on a device at opportune moments using sensors

ABSTRACT

Measurements can be obtained from sensors to determine a state of a device. The state can be used to determine whether to provide an alert. For example, after a first alert is provided, it can be determined that the device is not accessible to the user based on the determined state, and a second alert can be suppressed at a specified time after providing the first alert. The sensor measurements can be monitored after suppressing the second alert, and a state engine can detect a change in a state based on subsequent sensor measurements. If the state change indicates that the device is accessible to the user the second alert can be provided to the user. Alerts can be dismissed based on a change in state. A first device can coordinate alerts sent to or to be provided by a second device by suppressing or dismissing such alerts.

CROSS-REFERENCES TO RELATED APPLICATIONS

The present application is a continuation of U.S. application Ser. No.14/731,249, filed on Jun. 4, 2015. The disclosure of which is hereinincorporated by reference in its entirety for all purposes.

BACKGROUND

Mobile devices (e.g., phones) can provide alerts to a user in responseto a variety of triggers, such as a text message or other notifications.An alert is often missed because the user is either away from theirdevice, or distracted by another activity.

To address this problem, the current solutions send a second alert at afixed time later, if a user does not respond to the first alert. But,there is no guarantee that the second alert will get the user'sattention any better than the first alert.

Therefore, new devices and methods are desirable.

BRIEF SUMMARY

Embodiments provide improved devices and methods for proving alerts to auser of a device. In some embodiments, smart heuristics can use sensorsto determine an opportune moment that the user is likely to take noticeof the alert and send a subsequent notification at that moment.

According to some embodiments, one or more measurements can be obtainedfrom one or more sensors to determine a state of a device. The state canbe used to determine whether to provide an alert. For example, after afirst alert is provided, it can be determined that the device is notaccessible to the user based on the determined state, and a second alertcan be suppressed at a specified time after providing the first alert.The sensor measurements can be monitored after suppressing the secondalert, and a state engine can detect a change in a state of the devicebased on one or more subsequent sensor measurements. If the state changeindicates that the device is accessible to the user the second alert canbe provided to the user. Alerts can be dismissed based on a change instate. A first device can coordinate alerts sent to or to be provided bya second device by suppressing or dismissing such alerts

According to one example, after a first alert is provided, one or moremeasurements can be obtained from one or more sensors of the device. Itcan be determined whether the device is not accessible to the user basedon the one or more sensor measurements. A second alert can be suppressedat a specified time after providing the first alert when the device isnot accessible to the user. The sensor measurements can be monitoredafter suppressing the second alert. A state engine can detect a changein a state of the device based on one or more subsequent sensormeasurements. It can be determined that the device is accessible to theuser based on the change in the state of the device. The second alertcan be provided to the user in response to determining that the deviceis accessible to the user.

Other embodiments are directed to systems, portable consumer devices,and computer readable media associated with methods described herein.

A better understanding of the nature and advantages of embodiments ofthe present invention may be gained with reference to the followingdetailed description and the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a flowchart of a method for suppressing and providing an alertaccording to embodiments of the present invention.

FIG. 2 shows a block diagram of a system for determining a state of adevice according to embodiments of the present invention.

FIG. 3 shows a block diagram of a system for providing one or morealerts according to embodiments of the present invention.

FIG. 4 is a flowchart illustrating a method of providing alerts using adevice according to embodiments of the present invention.

FIG. 5 is a flowchart of a method that potentially suppressed a firstalert according to embodiments of the present invention.

FIG. 6 is a flowchart of a method for dismissing a second alertaccording to embodiments of the present invention.

FIG. 7 is a flowchart illustrating a method for determining a time forproviding an alert according to embodiments of the present invention.

FIG. 8 shows a system illustrating the coordination of alerts from afirst device to a second device according to embodiments of the presentinvention.

FIG. 9 is a block diagram of an example device.

DETAILED DESCRIPTION

When a text message (or other notification) is received, a mobile device(e.g., a phone) buzzes once (potentially displaying the message) andthen conventionally buzzes a second time a fixed time later when someonehas not accessed the phone. The user may not have accessed the phonebecause the phone was not accessible to the user. In such a case, thesecond alert will not get the user's attention any better than the firstalert. Thus, the second reminder alert may not be provided at anopportune time. This may cause a user to miss the message, particularlywhen many messages have been received.

In some embodiments, if a user does not respond to an alert, smartheuristics can use the device's sensors to determine an opportune momentthat the user is likely to take notice of the alert and send asubsequent alert at that moment. The second alert can be suppressed whenmeasurements from the sensors indicate (e.g., to a probability higherthan a threshold) that the mobile device is not available to the user.As an example, motion and/or light sensors can indicate that the user iswalking with the device in a pocket, and thus the mobile device is notavailable to the user. Other examples, the device can be left on a tableor desk while the user is away, or the device can be left in a purse orbackpack. As another example, a microphone sensors could determine thatthe device is in a noisy environment, and thus not accessible by a user.

The sensors can be monitored and fed into a state engine (which mayinvolve various classifiers) that detect a change in state, e.g., thatthe device is removed from a pocket, bag, etc. The state change canindicate that the device is accessible to a user. Certain states can bedefined as being available to a user, e.g., a state with sufficientlight and the device is not moving.

As an example, motion activity can be used to determine when the devicehas transitioned from a high-dynamics state, such as running or walking,to a more sedentary state, where the device might be more accessible. Asanother example, if the first alert comes in when the device is in astatic state (e.g., device is left on a table) and then the device ismoved (e.g., beyond a threshold), it can be determined that the deviceis picked up (not just a bump of the table), and thus accessible. Asignal to noise ratio of a wireless radio (e.g., Bluetooth or WiFi) canbe used to detect when a user is near their device.

As another example, a pressure sensor can detect when a device is insidea backpack, purse, or pocket, and can detect when the device has beentaken out. The movement in a closed environment can be detected from abillowing effect that can be measured by a device that is in a movingenclosed space, which is distinct from when the device is being moved inan open environment. As another example, an audio sensor can be used todetect when the ambient noise is above a certain threshold (notaccessible) can then detect when the ambient noise goes below a certainthreshold (accessible). As another example, an optical sensor (camera,ambient light sensor, and the like) can detect motion in the vicinity ofthe device, indicating the device is accessible.

I. Suppression and Providing of Alerts

Embodiments can provide a second alert when the user is more likely torespond to the alert. For instance, a vibration, noise, or display of amessage can be provided when the user is more likely to respond to thealert. For example, one or more sensors of a device can detect motion ofthe device and determine when the user has stopped walking, which cantrigger sending the second alert. Other examples can use environmentalsensors (e.g., a barometer, microphone, or an ambient light sensor).

FIG. 1 is a flowchart of a method 100 for suppressing and providing analert according to embodiments of the present invention. Method 100 canbe performed by a device (e.g., a phone or other mobile device) andutilize one or more sensors of the device.

At block 110, a notification is received. In various embodiments, thenotification can be a text message, a voice message, a reminder (e.g., acalendar reminder or for a task), an indication that a geo-fence hasbeen crossed (or other use of location), and the like.

In some implementations, the notification can be generated by canapplication running on the mobile, e.g., an alarm application or ageo-fence application. A kernel, other system routine, or otherapplication can receive the notification from such an application. Inother implementations, the notification can be received by anapplication, e.g., from another device via a communications interface,such as Bluetooth, cellular, or WiFi.

At block 120, a first alert is output. The first alert can be outputimmediately after receiving the notification. The first alert can beoutput in various ways, e.g., via a vibration, audio signal, display oftext associated with the notification, or any combination thereof. Akernel or other system routine can receive the notification, process thenotification, and determine how to output the first alert.

At block 130, a second alert is suppressed based on a current state ofthe device. The current state of the device can be determined based onmeasured values from one or more sensors of the device. The sensors canbe fed into classifiers to determine classifications for one or moreparticular categories. For example, a type of motion of the device is acategory. A classification of the motion can provide a sub-state thatcorresponds to the type of motion. Other examples of categories includea noise category and whether the device is stored within an enclosure.

At block 135, if the current state indicates that the second alertshould not be suppressed, then the second alert is output. The secondalert can be output at a specified time after the first alert, e.g., 30seconds after the first alert when there is no suppression. The currentstate can indicate that the device is accessible to the user, and thusindicate that the second alert should not be suppressed. A list canidentify states for which there is no suppression of the second alert.The list can stored such that the list is accessible to an alert engine,which can compare the current state to the list.

At block 140, a change in state is detected after the second alert wassuppressed. The can in state can be detected based on one or more sensormeasurements. The change in state can be a state transition from aprevious state to a subsequent state. The previous state can indicatethat the device was not accessible to a user, and thus the second alertwas suppressed at block 130. The state transition can be from oneclassification of a category to another classification, e.g., from onesub-state to another sub-state. For example, the transition can be froma sub-state within an enclosure to sub-state outside of an enclosure,and may be without regard for other sub-stated, e.g., a motionclassification.

At block 150, the second alert is output in response to the statetransition. In one embodiment, the subsequent state can indicate thatthe device is accessible to the user, and thus trigger outputting thesecond alert when the transition is detected. A list can be stored ofsuch states that indicate (designate) that the device is accessible tothe user. In another embodiment, the state transition can be of a typethat is designated for providing the second alert. For example, thestate transition can require the previous state to be from a particularset of previous states and the subsequent state to be from a particularset of subsequent states. Thus, the criteria of outputting may not bebased solely on the subsequent state, but depend on which state was theprevious state. Thus, only certain types of transitions would be atrigger for outputting the second alert.

Embodiments can also be applicable to e-mails, which normally might nothave two alerts. For e-mails, there can be a VIP list for which a userespecially cares about being notified. When a person on the VIP listsends an e-mail, the user might want to get a second alert so that ane-mail is not missed. In such a case, the device can be a desktopcomputer, as opposed to a mobile device, although also applicable to amobile device.

II. Sub-State Classifiers and State Engine

One or more sensors of a device can be used to determine a state of thedevice. For example, motion sensors can determine whether the device iswith a user that is running, walking, sedentary, or in a car that isbeing driven. Measurements from various sensors can be used to determinea state of the device. The state of the device can then be used todetermine whether to provide an alert (e.g., a second alert) to a user.

A. System of Sensors and Classifiers

FIG. 2 shows a block diagram of a system 200 for determining a state ofa device according to embodiments of the present invention. System 200resides within the device for which a state is being determined. System200 can include hardware and software components.

Sensors 205 can measure various properties of the device and thesurroundings of the device. As examples, sensors 205 can include anaccelerometer, a gyrometer, a barometer, a light sensor, a globalpositioning satellite (GPS) sensor, a microphone, and a camera. Themeasurement from any one sensor can be taken periodically or in responseto trigger (e.g., user input or a signal from an application running onthe device). Although multiple sensors are shown, just one sensor may beused for the purpose of determining the state of the device. Themeasurements can be sent to state classifiers.

Classifiers 210 can each determine a classification (sub-state) of thedevice for a given category. In the example shown, the categoriesinclude motion, whether the device is stored in an enclosure, and noise.When only one classifier is used, the sub-state for the particularcategory can be equivalent to the state of the device. In oneembodiment, the different categories can be independent of each other inthat a result of one sub-state of one category does not affect thedetermination of another sub-state for another category. Although ameasured value for a sensor can affect the classifications determined bytwo classifiers, e.g., as depicted for in system 200.

Each classifier can receive sensor measurement from any one or more ofsensors 205. Each classifier can use the measurements to determine aprobability for one or more classifications. The possibleclassifications for classifier may be predetermined, and the classifiercan assign a probability for each pre-determined classification based onthe sensor measurement that are provided to the classifier. Theclassifier can send all of the classifications with the associatedprobabilities to a state engine 220, or just send the classification(s)with the highest probabilities (e.g., top one or two or other specifiednumber).

In the example shown, motion classifier 210 a receives sensormeasurements from sensors 205 a and 205 b, which might be anaccelerometer and a GPS sensor. Motion classifier can then determine amotion classification of the device. In one embodiment, the motionsub-state can be selected from a set of classifications, e.g.,stationary, walking, running, bicycling, or moving in a vehicle (whichmight be separately determined for a car or a train). Other sensors canbe used in various combinations. For example, a gyrometer (or gyroscope)could be used to determine angular motion, which might indicate spinningor a type of mechanized motion. A magnetometer (e.g., acting as acompass) could be used to identify changes in direction, where a rate ofchange can indicate a type of motion.

Stored classifier 210 b receives input from sensors 205 a, 205 b, and205 c, which might be a gyrometer, a light sensor, and a microphone. Inone embodiment, the possible classifications are stored or not stored.In another embodiment, the type of storage can be determined, e.g., in apocket or a bag. The microphone could be used to detect muffled sounds,thereby determining that the device is stored in an enclosure.

Noise classifier 210 c receives input from sensor 205 c, which might bea microphone. In one embodiment, the possible classifications are storedor not stored. In another embodiment, the type of storage can bedetermined, e.g., in a pocket or a bag. One skilled in the art willappreciate the various combinations of sensors that can be used witheach classifier. Example noise classifications can be silent, low,medium, or high noise.

State engine 220 can receive all of the classifications (sub-states)from the various classifiers and determine one or more states of thedevice. In some embodiments, the states is a simple enumeratedcombination of the separate classifications, e.g., as an array value{walking, stored, low noise). In other embodiments, the classificationscan be combined to determine a state for a particular purpose, e.g.,whether the device is accessible to the user or not, which is an exampleof a particular type of state. Other types of states can be determinedfor other purposes based on the classifications from the classifiers.

The operation of state engine 220 and classifiers 210 can be determinedbased on user input or other settings, including default settings. Forexample, a user can decide to save battery and switch off thefunctionality of determining classifications and states. Switching offof the state engine functionality can impact alerts, as well as othermodules that use the state(s) and/or classification(s). The device canautomatically turn off such functionality based on a trigger, e.g.,based on battery level falling below a cutoff. In some implementations,turning off state engine 220 and motional classifiers 210 can turn offone or more of sensors 205.

The functionality of state engine 220 and motional classifiers 210 canbe turned on based on user input. In another embodiment, an applicationrunning on the device can require a state determination, and triggerturning on the functionality of state engine 220 and motionalclassifiers 210.

Further details for the determination of states of a device can be foundin U.S. Pat. No. 8,892,391 entitled “Activity Detection;” U.S. PatentPublication No. 2015/0050923 entitled “Determining Exit From A Vehicle;”and U.S. patent application Ser. No. 14/099,516 entitled “Mobile DeviceSensor Data Subscribing And Sharing,” the disclosures of which areincorporated by reference in their entirety. The device can have morethan one state (each of which may have more than one sub-state), eachwith a corresponding probability. The probability can be required to beabove a threshold to be considered a current state and subject toprocessing based on that state.

B. Classifications and States

The categories of motion classifiers 210 can be defined for a specificpurpose, e.g., categories that are pertinent to message delivery. As theclassifiers could be used for other purposes, the classifiers that areinstantiated can depend on the applications that have requested toreceived state information. Thus, classifiers that are pertinent to morethan message delivery may be running.

In some embodiments, a classifier can determine a classification basedon sensor measurement over a time window. For example, activity ofselect sensors in the last X seconds (e.g., 10 seconds) can be used by aparticular classifier to determine a sub-state for a particularcategory. The classifier can provide a new classification periodicallybased on each new time window. State engine 220 can also determine a newstate at every cycle (time window).

In some implementations, a classifier can use information from previousdeterminations (e.g., previous classifications) to determine theclassification for the current time window. For example, a linearcombination can be determined of current probabilities for theclassifications with probabilities determined from previous timewindows. Thus, if the current information is indeterminate, but previousinformation was more conclusive, then the current classification wouldtend to keep the sub-state the same as the previous cycle.

State engine 220 can also use information from previous cycles. Forexample, one cycle might indicate with medium probability (or a specificvalue for probability) that the state is “walking in pocket,” which canbe reinforced by more information in a next cycle to increase theprobability to high for “walking in pocket.” Such a state can bemaintained when data in a following cycle is indeterminate. Theprobability for a state or classification can provide a level ofconfidence for that state/classification.

More than one classifier can be directed to a same category, but havedifferent possible subs-states. For example, two classifiers can bedirected to motion. One classifier can provide a broad determinedbetween stationary and moving. Then, a second classifier can providespecific types of moving, e.g., walking, biking, driving, running, etc.Equivalently, a same classifier can provide both the narrow and thebroader classifications. If the two classifications are contradictory,the probability assigned to the classifications can be reduced.

The suppression of an alert can be different between just moving and aparticular type of movement (e.g., if the particular type of movement isnot determined to have a value above a threshold). For example, walkingmight not be suppressed, but just moving might be suppressed, since thetype of motion is not specifically known, and could include running, forwhich suppression would be done. As another example, if a classifier isnot sufficiently confident enough that the user is walking, then thestate can fall into a broader motion category, where an alert isdesignated to be suppressed, for example.

The classifications of a category can relate to a level. For example,the classifications of a category relates to ambient light can specifyan amount of ambient light. The different classifications can benumerical values or broader levels, such as low, medium, and high. Theamount of change from one level to another level can be used indetermining whether an alert is to be provided. Noise is another exampleof a category with different levels.

Another example of a category corresponds to user interaction with thedevice. For example, whether the person has logged in to the device,e.g., with a password or biometric scan. Further classifications of thiscategory or other categories can user sensor measurements of whetherreceiving any user inputs on the device.

C. Multiple Classifications and State

As discussed above, there can be multiple classifiers, eachcorresponding to a different category. State engine 220 can combine theresulting classifications (including probabilities, if used) todetermine a state. For example, motion classifier 210 a can provide aclassification of “driving.” And, another classifier can provide aclassification of whether the device (e.g., a phone) is mounted in adock (e.g., any bracket) or other stabilizing device. The device canthen be determined to be in a “driving mounted” state.

The specific values for the different classifications can impact thefinal state, which can affect whether an alert is suppressed. Forexample, suppression might occur for a “driving mounted” state, but notfor a “driving unmounted,” As the unmounted state can indicate that theuser is a passenger.

As another example of combining multiple classifications, one state canbe “walking in pocket” and a different state can be “walkingout-of-pocket,” where such states are mutually exclusive. A “walking inhand” state can also be used. There can be separate classifiers thatdetermine the classification for each category, and state engine 220 cancombine, e.g., based on probabilities for the classifications. In someembodiments, there is only one state of the phone, as determined bystate engine 220. There are many ways to combine classifications, andany classification can be based on a measure of confidence in one classversus another. Further details on classifications can be found in U.S.Pat. No. 8,892,391.

D. Predominant Classification and Category

In some embodiments, a predominant category or classification can bedetermined. The predominant category or classification can be used invarious ways. For example, a classification of a predominant categorycan be used as a state for determining whether an alert is suppressed orprovided. As another example, a predominant classification can be usedto determine when a transition has actually occurred. State engine 220and/or motion classifiers 210 can be involved in determining apredominant category or classification.

As mentioned above, multiple classifications can be determined forvarious categories. State engine 220 can determine a combined state(i.e., determined from combination of classifications of variouscategories) and determine a transition of the combined state. In otherembodiments, a predominant category can be determined, and thatclassification of the predominant category can effectively be used asthe state. Thus, the classification of the predominant category can bedeterminative of whether an alert is suppressed or provided.

In one implementation, the motion category can be determined to be mostimportant. This determination can be made based on various criteria. Forexample, at a current time, the device can be determined to have a highprobability for being in a particular classification of the motioncategory, thereby making the motion category predominant. Relativeprobabilities among classifications of different categories can be usedin making the predominant determination, e.g., if a probability for aclassification of a first category can be required to be sufficientlyhigher than the probability for a classification of a second category tomake the first category predominant.

For example, the motion classifier can identify a walking state that isvery consistent, and thus is repetitive behavior. Such consistency canprovide a high probability for the walking state. Then, if any sort ofchange in motion happens, an alert can be provided as the transitioninvolves a transition in the classification of the predominant category.

A predominant classification can be determined based on whether a devicehas intermittent behavior, and a level of predominance can be used. Forexample, a user might walk around an office building. As the user walks,the user might stop intermittently, e.g., to let somebody pass on thestairs, to walk up the stairs, you know, or to open a door. Thus, therewill be time that the user is not walking. In one embodiment, motionalclassifier 210 a can identify the predominant measurement of walking andthus determine that classification. The predominant classification canbe the classification with a highest probability, potentially with arequirement of being sufficiently higher than the classification withthe second highest probability.

As another example, the device can be in a car that is driving, butmakes various momentary stops (e.g. at stop signs or lights). In such asituation, motion classifier can determine that the stop is notsufficiently long, and thus keep the device in a driving state. Thisdetermination can depend on how long the time window of data is for acycle to determine a current classification. A shorter time window canbe more likely to identify a transition to a new classification. In someembodiments, multiple cycles are required to identify a transition froma predominant classification, which may be accomplished by combiningprobabilities across multiple cycles to calculate the probability fordetermining the predominant classification.

Once a classification of a category changes, that category might nolonger be a predominant category. For example, if a motionclassification is driving, this might take precedence over a categoryinvolving user interaction of the device or a noise level. But, if themotion classification is stationary, another category might bedesignated as predominant, which may depend on the currentclassification for that category. And, the determination might depend onhow high the probability is for the classification for the othercategory. Thus, the predominant category may change when aclassification changes, or even just when probabilities of differentclassifications change significantly. In such a case, whether tosuppress or provide an alert can be dependent on the classification of anew category.

A priority list can be used of classifications from various categoriesto determine which one is predominant. For example, the list can specifydriving to be predominant over any noise classification, or over certainclassifications of another category. The priority list can beimplemented as a decision tree or other suitable data structure. Thedecision tree can account for relative probabilities among differentclassifications to determine a priority. A formula can be used to weightthe different probabilities so that a direct comparison can be made. Invarious embodiments, the priorities can be determined based on userinput, intended use of device, and/or time of day (e.g., preference tomotion for one time of day and more preference to software usage ofdevice for other time of day). The time of day preference can bedetermined based on predominant classifications during that time of day.For example, if one classification of a category occurs more often thanclassifications of other categories, then that one classification canhave a preference for being predominant during that time of day.

E. Transitions

Changes in state (also referred to as transitions) can be detected forclassifications and states, and can be identified by state engine 220and/or motion classifiers 210. A transition of a classification can beequivalent to a transition of a state when the state is defined by oneclassification. A transition can depend on data collected during aspecific time window, and can use previous classifications/states. Asfor a state of a combination of classifications, state engine 220 candetermine a transition of the combined state, which may be based onchanges in classification(s) and/or changes in probabilities ofclassifications. Only certain changes in a state might signify atransition for providing an alert.

The transition would depend on the sensor measurement from sensors 205.For example, a speed measured by an accelerometer might indicate atransition from a walking classification to a running classification,potentially along with other sensor measurements to distinguish betweenrunning and driving. Where classification provides a level of thecategory, the change in levels can be used to determine a type oftransition. For example, when a level changes from low to high or alarge numerical difference, then the transition can be flagged as beingsignificant. The amount of change for transition can be stored andcarried through the logic flow to determine whether an alert should beprovided (e.g., as determined by an alert engine).

Only certain transitions (e.g., from certain states to certain otherstates) might be allowed. Thus, these allowed transitions might informthe determination of the new state. For example, two potential statescan be determined, but only one of the states might be allowed in atransition from a previous state. The allowed state can then be selectedas the subsequent state. In another embodiment, the probabilities of thetwo states can be determined, and relative probabilities can be modifiedbased on the allowability of the transition to each of the states. Inthis manner, a previous state can affect the determination of thesubsequent state.

In some embodiments, once a transition is detected, state engine 220 caninform an alert engine, which may determine whether an alert should beoutput. For example, if a message comes in and currently the motionclassification is walking, then the device might wait for a transitionto a stationary state before outputting the alert. Other actions can bedone in response to the transition. State engine 220 can communicate atransition and the states involved to any designated module.

Some transitions might not trigger an alert, while other transitions cantrigger an alert. For example, if the user was playing a game on thedevice, a transition to not playing a game can be triggered to providean alert. Such a rule could be said by user automatically determined bythe device, in response to a user number checking a message from playinga game on the device. As another example, if the user has not viewed thelast N (e.g., 3) alerts, then future alerts can be suppressed while theuser is playing the game. When the user has left the device alone afterplaying the game, that transition may be a trigger that the device isaccessible to the user.

The device can monitor for specific transitions that are known to be atrigger for outputting alert. A list of transitions to monitor can bedependent on the current state. For example, if the device is an leftalone in a dark room, the state might include a motion classification of“stationary” and light classification of “dark.” A transition to a newaudio classification or light classification can be monitored as alikely transition for causing an alert to be provided. As anotherexample, if there is motion activity, then a change in motionclassification can be monitored for a transition, or a change in thebarometer can be monitored (e.g., to detect the device being taken outof an enclosure). In yet another example, a transition from beingstationary in a bag to non-stationary in a bag might not trigger analert, but a transition from being stationary and not in an enclosure tobeing non-stationary might trigger an alert.

Multiple transitions of classifications might occur at a same time. Forexample, there can be one transition the motion category and anothertransition for the light category during a same measurement cycle. Anycombination of different transitions the different categories couldoccur. Whether to output an alert can depend on any single transitionright combination of the transitions. For example, only certaintransitions of a particular category might trigger an alert. Or, onlycertain combinations of transitions might trigger an alert. In someimplementations, one of the transitions might involve the predominantcategory, and that transition can be used to determine whether toprovide an alert. For example, the stored category (i.e., whether thedevice is stored in an closure) can be the predominant category, and achange to mapping stored entry alert regardless of what the othertransitions are.

Transition probabilities can be used to determine whether a transitionhas occurred and what the new state or classification is. For example,if the device is on the user, the device whenever e.g. perfectlystationary state. Then, if the classifiers are state engine detect thatthe device is perfectly stationary, and then detect sensor measurementsthat suggests that the user is walking with the device in s bag or in apocket, then the new state is likely walking in a bag, and not in apocket. Such a determination can be made since there is a low transitionprobability of going from perfectly stationary to walking in a pocket,as the user would need to pick up the device from the stationarylocation and put it in the pocket. Accordingly, there may be a subset ofstates for which a transition is allowed (or probable), which can affectthe determination of what the new state is.

The probability of the device being in a particular state can be used todetermine a probability that the device is not accessible to a user. Forexample, if the state is one designated as not being accessible to auser, then the probability of being in the particular state can be takenas the probability that the device is not accessible to a user. Theprobability of that the device is not accessible to a user can becompared to a threshold (e.g., a confidence threshold). The device canbe determined to not be accessible to the user when the probabilityexceeds the threshold.

F. Sensors

Below are some examples of certain types of sensors. The sensors can beused in determining a classification/state and transitions betweenclassifications/states.

1. Inertial Sensors

Inertial sensors can measure various types of motion, orientation, andchanges thereof. For example, an accelerometer can measure accelerationfrom rest to velocity, or from one velocity to another velocity. Agyrometer (or gyroscope) can measure and orientation, e.g., athree-dimensional position of the device, which may specify various tiltangles. The orientation can include whether the device is face up orface down. Changes in such orientation can also be measured. Amagnetometer can be uses a compass to determine an orientation relativeto the magnetic poles of the Earth.

2. Environmental Sensors

Environmental sensors can measure the surroundings of the device. Forexample, an ambient light sensor can detect an amount of light aroundthe device, which may help to determine whether the device is within anenclosure. A proximity sensor can determine whether an object is nearbythe device. In such an example, an infrared sensor can be used to detectthe object and/or the capacitance sensor can detect whether an object isnear a display screen of the device, as may occur when the displayscreen is raised to a user's face when taking a phone call). Wirelesscommunication interfaces could also be used to determine whether anobject is interfering with the signal, and thus whether an object iswithin proximity.

Another environmental sensor is a noise sensor (e.g., a microphone). Anoise sensor could detect that the phone has been left alone in a room(e.g., no noise), and be used to detect a transition to a state withnoise when a person enters the room. Such a transition can trigger analert, is it may be presumed that the device is now accessible to auser. In an alternative fashion, a very high noise classification mightcause an alert to be suppressed (e.g., in a crowded club and less likelyto notice and alert), and a transition to a lower noise level can causean alert to be provided.

A humidity sensor can be used to detect whether the device is within anenclosure, or even a specific type of closure. For example, the humiditywould increase the device is in a pocket, as opposed to beingout-of-pocket. Other environmental sensors can include gas or salinitysensors.

A temperature sensor could be used to infer if the device was indoors oroutdoors, or infer if the device was in a pocket or a bag. A lowtemperate of outdoors is more likely to be available, as the user likelywould have the device outside of any pocket.

3. User Sensors

One or more sensors can also sense a property of a user. For example, aheartrate sensors could be used to infer if the person is engaged invigorous activity. If the user was engaged in vigorous activity, thedevice might be considered unavailable to the user.

4. Location

The location of the device can be determined using GPS. In anotherexample, a barometer could be used as a pressure sensor to determine analtitude of the device. In this manner, the barometer can be used todetermine where on a hiking trail person of his, potentially combinationwith a GPS sensor. Further, a GPS receiver could count the number ofvisible satellites and infer if the device was indoors or outdoors.

III. Using Accessibility of Device

Some embodiments can use a state of the device to determine whether ornot the device is accessible. When the device is accessible, he can beassumed that the user is more likely to be aware alert. Thus, the alertcan be sent at an opportune time. The accessibility of the device can bebased on whether the user has the device. States that indicate that theuser does not have a device (e.g., that the devices stationary on a flatsurface) can be taken as not being accessible to the user. In someimplementations, a device may not be accessible when a particularapplication of the device is not accessible to the user. For example, ifthe user is playing a game, a messaging application may not beaccessible to a user, or an alert screen may not be accessible, as thatwould interrupt the game.

A. System for Providing Alerts Based on Accessibility

Once a state is used to determine the accessibility of a device, thedevice can determine whether to provide an alert. Alerts that have beensuppressed can be queued, and all or portion can be provided in responseto a transition of the device being accessible. The determination ofwhich states correspond to the device being accessible candidate invarious ways and with various modules.

FIG. 3 shows a block diagram of a system 300 for providing one or morealerts according to embodiments of the present invention. System 300resides within the device that is providing the alert. System 300 caninclude hardware and software components.

State engine 320 can provide a current state 325 to alert engine 330.State engine 320 can correspond to state engine 220 of FIG. 2. Stateengine 320 can periodically provide current state 325, e.g., at the endof cycles that use sensor measurements from a specified time window. Inother embodiments, state engine 320 can provide current state 325 whenthe state changes. State engine 325 can store the current state restidentified with a state transition occurs.

In various embodiments, current state 325 can correspond to a singleclassification from only one classifier being used, a classification ofthe predominant category, a combination of classifications, or bespecified by the combination of classifications (e.g., specified by atable defining a state for a particular combination of classifications,with a number of possible states being less than the number ofpermutations possible classifications).

Alert engine 330 can receive notifications 332. An alert (e.g., a secondalert) corresponding to a notification can be suppressed, e.g., based ona state at a time the notification was received. The determination ofwhether to suppress the alert can be performed using methods describedherein.

Information about the suppressed alerts can be queued and stored in aqueued alerts storage 335. An alert can be stored with variousinformation, such as a text corresponding to the notification, a mannerfor outputting the alert, and application corresponding to thenotification or the alert, the priority of the alert, a time thecorresponding notification was received, an identifier for a type of thealert, or other suitable information. Storage 335 can be part of othermemory, and the queued alerts can be stored together in a data structuredesignated for queuing alerts.

When alert engine 330 receives current state 325, alert engine 330 candetermine whether one or more alerts should be provided based on currentstate 325. In some embodiments, alert engine 330 can store previousstates to determine whether a transition has occurred to current state325. In other embodiments, state engine 320 can indicate whether atransition has occurred when sending current state 325, or may only senda new state when a transition has occurred.

Alert engine 330 can include a rules engine 337 for determining whetheran alert is to be provided based on current state 325, which may includethe type of transition to current state 325. Rules engine 337 caninclude one or more criteria for identifying the device as beingaccessible. For example, rules engine 337 can include a list of statesthat act as a trigger for providing alerts. As another example, rulesengine 337 can include a list of transitions designated for acting as atrigger for providing alerts, and thus information about a previousstate is used to determine whether an alert is provided.

Rules engine 337 can use an amount of change from one state to anotherto determine whether the transitions should trigger the providing of analert. For example, the ambient light might increase significantly(e.g., a light difference greater than a threshold, as may occur from alow classification to a high classification). For example, the previousstate might be “dark,” and the light classification is the only change,rules engine 337 can check the amount of change in the lightclassification. If the change in light classification is significantenough (e.g., difference is greater than a threshold), then one or morequeued alerts can be provided. Thus, the method may determine that aparticular transition could possibly trigger an alert, but providefurther analysis by determining an amount of change corresponding to thetransition. A particular transition may multiple changes, each of whichmay include a level of change they may be used to determine whether toprovide an alert.

Different rules can be used for different alerts originating fromdifferent notifications. For example, a notification about a textmessage may have one set of criteria for when the device is consideredaccessible to a user so as to identify an opportune moment for providingan alert about the text message. And, a notification about a remindermay have a different set of criteria for when the device is consideredaccessible to the user so as to identify an opportune moment forproviding an alert about the reminder. In some embodiments, alert engine330 can identify the type of queued alerts in storage 335, and onlycheck criteria for those queued alerts in storage 335.

Once rules engine 337 determines that at least one type of alert is tobe provided to the user, alert engine 330 can retrieve any correspondingalerts from queued alerts storage 335. The retrieved alerts can then beoutput as alert(s) 345. The queued alerts can be stored with an alertidentifier corresponding to the type of notification that generated thealert. Rules engine 337 can specify an alert identifier for the type ofalerts that are to be output based on the criteria being satisfied.Alert engine 330 can use the alert identifier to retrieve correspondingalerts from storage 335. If there are not different types of alerts ortypes of alerts are to be output, an alert identifier may not be needed.

B. Method

FIG. 4 is a flowchart illustrating a method 400 of providing alertsusing a device according to embodiments of the present invention. Method400 can be performed entirely or partially by the device. As variousexamples, the device can be a phone, tablet, laptop, or other mobiledevice, as well as a desktop computer.

At block 410, the device receives a notification. For example, thedevice can receive a text message via a cellular network. As anotherexample, a software became internal to the device can generate areminder (or other notification), as may occur at a particular timeand/or location of the device. Thus, the device can receive thenotification from itself.

At block 420, the device outputs a first alert in response to receivingthe notification. The first alert can provide an initial indication tothe user that a notification has been received. The first alert canprovide information, e.g., displaying text associated with thenotification. The first alert can be provided in various ways, e.g.,using audio, vibration of the device, display of text, and combinationsthereof. A user can acknowledge receipt of the first alert various ways,e.g., selecting a button of the device, moving the device in aparticular manner, or other predetermined action. The user may notacknowledge receipt of the first alert, as is described herein, and thusthe device may determine an opportune time to provide a second alert.

At block 430, one or more measurements are obtained from one or moresensors of the device. Examples of the types of sensors are describedherein, and include software sensors that measure a current operation ofan application (e.g., whether the application is being used by the user,and potentially how the application is being used). The sensormeasurements can be obtained periodically from the sensors or inresponse to a trigger. For example, if a change is detected in onesensor, then measurements can be requested from one or more othersensors. The sensor itself could trigger providing a measurement, e.g.,a sensor can produce electrical signal under certain circumstances, suchas motion. The one or more measurements can be obtained by one or moreclassifiers running on one or more processors of the device.

At block 440, it is determined that the device is not accessible to auser based on the one or more measurements from the one or more sensorsof the device. In various embodiments, the determination that the deviceis not accessible to the user can be made by a state engine or an alertengine. The one or more measurements can indicate a current state of thedevice, and that current state can be compared to a list of states thatare designated to not be accessible to the user.

At block 450, when the device is not accessible to the user, a secondalert is suppressed at a specified time after providing the first alert.The second alert is suppressed, the second alert can be stored for lateraccess. For example, the second alert can be queued in a storage (e.g.,storage 335). A stored entry for the second alert can include variousinformation, as is described herein.

The specified time can correspond to a predetermined amount of timeafter the notification was received or after the first alert was output.For example, the device can be configured to provide the second alert 30seconds (or other time) after the first alert. Before providing thesecond alert, the device can check whether the second alert should besuppressed. In other embodiments, the determination of the accessibilityof the device can be determined prior to a default time for providingthe second alert. Thus, in some implementations, if the device isdetermined to not be accessible at any time before the default time forproviding the second alert, the device can determine to suppress thesecond alert. Such a determination would still occur at a specifiedtime.

At block 460, subsequent measurements from the one or more sensors ofthe device can be monitored at a plurality of times after suppressingthe second alert. The subsequent measurements can correspond to aparticular time window. The subsequent measurements of the time windowcan be stored in be identified as occurring a given cycle correspondingto the time window. In various embodiments, measurements from a singlecycle can be used for later analysis, or measurements from multiplecycles can be used.

At block 470, a state engine executing on the device detects a change ina state of the device based on one or more of the subsequentmeasurements from the one or more sensors at one or more of theplurality of times. For example, state engines 220 or 320 can detect achange in the states. The change may correspond to a particulartransition from one state to another state. Such a change in state maycorrespond to any of the embodiments described herein forchanges/transitions and classifications and states.

At block 480, it is determined that the device is accessible to the userbased on the change in the state of the device. The determination of theaccessibility of the device can be based on various factors as aredescribed herein. For example, only certain transitions from a previousstate to a subsequent state may indicate that the device is accessible.In other embodiments, the subsequent state can specify the accessibilityof the device, without a reference to a previous state. The change instate may include only an identification of the subsequent state,include only an identification of a particular type of transition, orinclude various combinations of information.

At block 490, the device outputs the second alert based on determiningthat the device is accessible to the user. Given that the device isdetermined to be accessible to the user, the device can determine thatit is an opportune to output the second alert. The second alert can beoutput in any suitable manner. In some embodiments, the second alert canbe output in a different manner if it was suppressed, as compared to howa second alert would have been output had the second alert not beensuppressed.

IV. Suppression of First Alert

In some embodiments, the device can determine whether the first alertshould be suppressed based on a state of the device. For example, a usermay be driving (device is in driving state) when a notification isreceived, the device can determine not to provide the first alert, so asnot to disturb the user. The device can wait to provide the alert to theuser, e.g., until the device has reached a destination. The device candetermine a destination has been reached when a state corresponds to theuser having exited the vehicle, as may be determined according to U.S.Patent Publication No. 2015/0050923 entitled “Determining Exit From AVehicle.” In one embodiment, a user can set a preference for suppressingall alerts (or certain types of alerts) when the device is in aparticular state or classification.

FIG. 5 is a flowchart of a method 500 that potentially suppressed afirst alert according to embodiments of the present invention. Method500 can be performed entirely or partially by the device. In oneembodiment, method 500 is performed when suppression of a first alert isenabled.

At block 510, a notification is received. The notification can bereceived in any suitable manner, e.g., as described for block 410 ofFIG. 4.

At block 520, a state of the device is determined based on one or moresensor measurements. The state can be determined according to techniquesdescribed for FIG. 2. The one or more sensor measurements can beobtained before the notification is received. A state of the devicecould already be determined, and that current state can be stored. Thestate could be retrieved when the notification is received.

At block 530, it is determined whether to suppress the first alert basedon the current state. The determination of suppression can be made byalert engine 330 of system 300. In some embodiments, the suppression ofa first alert can be turned on or off, and may have a default setting.If suppression of the first alert is possible, the current state (whichmay be a single classification) can be compared to a list of states forwhich suppression of a first alert is to occur, or equivalently a listfor which a first alert is to be provided.

As an example for when suppression of a first alert might be set, theuser might be driving. It may be difficult for a user to resist checkingthe alert, and thus suppression of the alert may be beneficial so thatthe user does not check the alert.

At block 535, if the first alert is not suppressed, the first alert canbe output. The first alert can be output in various ways, e.g., asdescribed herein.

At block 540, a change in state is detected. The change can be detected,as described herein. As examples, a change in a classification of onecategory can be detected, or a change in multiple classifications.

At block 550, it is determined whether to provide an alert based on thechange in state. For example, a new state can be detected, and the newstate can be compared to a list of states that trigger a first alert.This list can be the same or different than a list of states forproviding a second alert. As another example, the change in state can berequired to correspond to one or more particular transitions from onestate to another state. A list can specify (designate) transitions ofpairs of states for the previous and subsequent state for which an alertis to be provided.

In some embodiments, the probability of the change of state can be used.For example, a probability of being in a new state can determine whetherthere is sufficient confidence to identify a change in state. Thisprobability can be used, along with information about the possible newstate, as may occur for when determining whether to provide a secondalert, as described above. If two possible new states would trigger analert, the two probabilities can be summed for the purpose of providingthe alert, which may also be done for providing the second alert.

At block 560, the first alert is output. The first alert can be outputin an suitable manner, e.g., as described herein. In some embodiments, asecond alert can be provided at a predetermined time after outputtingthe first alert, suppressed and then output, or not provided at all.

A specific state for suppressing the first alert may haveclassifications from multiple categories. Thus, in addition to a drivingclassification, it can be determined what the user interaction (anexample of another category) is with the device. If the user isinteracting with the device, it can be presumed (or at least have ahigher probability) that the particular user is a passenger, and thusthe first alert should be provided. Whereas, if the device is also in amounted state (e.g., in a cup holder, attached to a holder, etc.), thenthe particular user is likely the driver, and no notification would beprovided, in such an example.

V. Dismissal of Second Alert

In some embodiments, a user may have seen the first alert and not wantto have a second alert output. For example, a use may be near a phonethat is motionless on a table, and see the alert. In such a case, a usermight purposefully change the state of the device so as to dismiss asecond alert. Or, there may be instances where the state at the time ofproviding the first alert might indicate that a second alert is not tobe provided at all. For example, if a user is in a state of using thedevice, it can be presumed that the user saw the first alert.

FIG. 6 is a flowchart of a method 600 for dismissing a second alertaccording to embodiments of the present invention. In one embodiment, amode of operation for whether a second alert may be dismissed can beconfigurable. Thus, a user may choose to enable a mode that determinedwhether to dismiss a second alert.

At block 610, a notification is received. The notification can bereceived in any suitable manner, e.g., as described for block 410 ofFIG. 4.

At block 620, a first alert is output. The alert can be output in anysuitable manner, e.g., as described for block 420 of FIG. 4.

At block 630, it is determined whether to dismiss a second alert basedon a current state. The current state may be the state when the firstalert was provided. Or, a state at a later time. Thus, a change in statemay be detected, and the second alert can be dismissed based on thechange in state. Accordingly, block 630 can be performed multiple times,and may occur after block 640.

The dismissal may be determined by comparing a current state to a listof stated for which a second alert is to be dismissed. Similarly, aparticular transition from one state to another state may indicate thatthe second alert is to be dismissed. A list may specify pairs ofprevious states and subsequent states for which the second alert isdismissed.

At block 635, if the second alert is to be dismissed, method 600 mayend. In such a situation, any storage of the second alert may bedeleted.

At block 640, if the second alert is not dismissed, it can be determinedwhether the second alert is to be suppressed based on a current state.Block 640 can be performed at a specific time after providing the firstalert. Block 640 can be performed in a similar manner as block 130 ofFIG. 1, and as described herein. For example, sensor measurements canindicate that the device is in an enclosure (e.g., a pocket), and thusit can be determined to not be an opportune moment to provide the secondalert.

At block 645, if the second alert is not suppressed, then the secondalert can be output. The second alert can be output in any suitablemanner, e.g., as in block 135 of FIG. 1. The second alert can be outputat a predetermined time after the notification is received or the firstalert is provided, which may differ if the first alert was suppressed.

In some embodiments, if the second alert is not suppressed, the devicecan perform further checks to determine whether the second alert is tobe dismissed. The further checks can be done periodically or in responseto an even, e.g., a change in state. The change in state can bedetermined by a state engine (e.g., state engine 220), and the changecan trigger a determine of whether to dismiss the second alert. If thesecond alert is dismissed, then any information for the second alert canbe deleted, e.g., from storage 335 of FIG. 3.

At block 650, if the second alert is suppressed, then method 600 canproceed to detect a change in state. The change in state can correspondto a change that is designated to trigger the providing of a secondalert. The detection of the change in state and the types of changes instate that trigger the providing of a second alert are described herein.

At block 660, the second alert is output. The second alert can be outputin any suitable manner, e.g., as in block 150 of FIG. 1, block 490 ofFIG. 4, and block 560 of FIG. 5.

VI. Timing of Providing Alert

Determining whether to provide an alert based on a transition to a newstate can use additional information besides the change in state, e.g.,a particular new state or a transition from a particular previous stateto a particular new state. For example, determining whether to providean alert can use location. In this manner, the change in state canindicate that a an opportune moment is possible, but further analysis isrequired. Thus, once the change is identified to correspond to a statewhere an alert can be provided, other criteria may be determine whetheran alert will actually be provided.

FIG. 7 is a flowchart illustrating a method 700 for determining a timefor providing an alert according to embodiments of the presentinvention. As examples, method 700 can be implement using modules withinalert engine 330, or more specifically in rules engine 337.

At 705, a change in state is received. The change in state can bedetermined as described herein, e.g., by a state engine. The change instate can be determined based on sensor measurements.

At 710, it is determined whether the change in state corresponds to achange designated for possibly sending an alert (e.g., a statedesignated for being accessible to the user). In one embodiment, a listof new states or particular pairs of states for the transition (i.e.,previous state and subsequent state pair of the transition) can specifywhether an alert might be provided. The list of changes can be kept instorage 740. The list may be accessed by an alert engine. Even if thechange is a match for an item in the list, the alert is not necessarilyprovided at that time, or potentially ever, as further analysis isperformed to make that determining of when to provide.

At 715, if the change is not designated for providing an alert, then noalert is provided. The process can go back to a state of waiting foranother state change. When another state change occurs, then method 700can repeat.

At 720, if the change is designated for potentially providing an alert,it is determined whether the alert is to be sent. Other information 730can be received at this point so as to make the determination of whetherto provide the alert. For example, a location of the device can bedetermined at this point. The other information can be already stored onthe device, including the location (e.g., from a recent measurement), orobtained at the time of making the determination at 720.

At 725, it can be determined that no alert is to be sent for theparticular change in state and the particular other information. Thecriteria for not sending (or for sending) the alert can depend on thetype of change, as well as the other information (e.g., location). If analert is not provided, method 700 can continue to monitor the otherinformation and make additional determinations when the otherinformation changes. For example, it can be determined that a change instate is a match for providing an alert, but the other information(e.g., location) might indicate that the moment is not opportune. Whenthe other information changes to satisfy specified criteria (e.g.,device is within a specified distance of one or more particularlocations), then the alert can be provided.

At 735, it is determined that an alert is to be sent, and a triggersignal is transmitted (e.g., an alert engine can transmit a signal to anoutput routine). For example, an alert engine can monitor location inresponse to determining that an alert is potentially to be provided at710, and determine that the location matches one or more criteria.Different types of alerts can have different criteria for the otherinformation, and for the change in state. The alert can be a first alertor a second alert.

The other information and the criteria for determining when to send thealert based on the other information can be learned via historical usageof the device. For example, the device can track when an alert isacknowledged and/or when an application associated with the alert isaccessed.

As an example, a particular reminder may be set to occur when the deviceis in a driving state. Such a reminder may be to go to a particularstore (e.g., a grocery store). But, the reminder would not be set justwhen the device is close to the grocery store, as a car might berequired. Thus, the change in state to driving can be first matched tothe possibility of sending such a reminder at 710. If the device getsnear a designated store, then the alert can be provided.

Some embodiments can use a type of notification. For example, anotification might be from family or a friend. In such a case, even if achange in state indicates that an alert can be sent, the alert mightcontinue to be queued while the user is at work. Conversely, anotification related to work might be kept in the queued storage untilthe device's location is way from home or near work. The otherinformation can include times of day, e.g., as a proxy for location inthe example above.

The other information can also include when another alert is displayedand can include a confidence value for providing an earlier alert forthe notification. For example, the confidence for when to provide analert may not be very high (but high enough to provide the alert) toknow the user will definitely get the alert, but may be high enough tostill provide the alert. In such cases, the alert can still be kept in aqueued storage and provided when a change in state occurs (e.g., achange in state for providing another alert).

Accordingly, a third alert can be provided. For example, the alert maybe kept in a storage for a certain amount of time, and if a state changeoccurs that indicates a higher probability for the device to beaccessible (e.g., a higher confidence of knowing the state of thedevice), then a third alert can be provided. For example, when theconfidence of knowing that the a transition has occurred from a runningstate to a stationary state increases (e.g., higher than a threshold),then a third alert can be provided. The alert can be deleted fromstorage after a certain amount of time.

VII. Coordination with Other Devices

In some embodiments, a first device can coordinate alerts that are to bepresented at a second device. For example, the first device can suppressor dismiss alerts that are to be provided by the second device.Accordingly, the outputting of an alert by the first device can beaccomplished by sending the alert to a second device, which can thendisplay, vibrate, and/or play on a speaker. As examples, the firstdevice may be a phone or a tablet and the second device can be a watchor other wearable device.

FIG. 8 shows a system 800 illustrating the coordination of alerts from afirst device 810 to a second device 820 according to embodiments of thepresent invention. As depicted, one or more notifications 805 can bereceived at an alert system 830, which can variously include sensors,classifiers, a state engine, and an alert engine, e.g., as describedherein. Although depicted as being received from an external source,notifications 805 can also be generated internally by first device 810.

Alert system 830 can suppress alerts and store the alerts in a queuedalerts storage 835. The suppressing of alerts can be performed asdescribed herein. For example, first device 810 can obtain sensormeasurements, which may be from sensors of the first device and/or oneor more sensors 822 of the second device. The sensor measurements canindicate a state of the second device and whether to suppress an alertfor the second device.

Alert system 830 can determine to provide the alert to second device820. This determination can be made after determining to suppress thesame alert for outputting to a display, speaker, or other element onfirst device 810. For example, first device 810 can determine that firstdevice 810 is in a bog, and thus an alert should be suppressed fordisplaying on first device 810. But, first device 810 may know (ordetermine) that second device 820 is in communication with first device810. First device 810 can then determine a state of second device 820.If second device 820 is available (e.g., in a state of being worn), thensecond device 820 would be accessible to first device 810. However, ifsecond device 820 is in a state of being within an enclosure, then firstdevice 810 can decide not to send an alert to second device 820.

Other states of second device 820 can include motion classifications.These motion classifications can be used to determine whether the deviceis accessible to a user, e.g., whether the device is being worn. Forexample, if second device 820 is a watch and a motion classification iswalking (which may be determined from a combination of sensors of thewatch and first device 810), the motion of the watch would be of aparticular type if worn on a wrist, and thus available to the user.

As another example of suppression of alerts, first device 810 can informsecond device 820 not to provide any alerts to the user. This may evenbe alerts corresponding to notifications that are not received by firstdevice 810, e.g., notifications that are generated internally by seconddevice 820 or received directly from an external source. For instance,first device 810 might determine that the user is driving (e.g., basedon motion and mounted state), and thus the user should not receive anyalerts from second device 820. In this case, first device can alsosuppress sending any alerts to second device 820, or could send an alertbut tell second device 820 not to output the alert.

As yet another example, if the device is not accessible to the person,the second alert might flash the lights in the user's house. Conversely,a smart sensor that detects daily patterns could be used to suppress asecond alert until a more opportune moment. For instance, a motiondetector in a hallway could be used to determine when a person typicallywakes up, and suppress a second alert until after a person is likely tobe awake.

VIII. Intensity of Alert

In some embodiments, the intensity (e.g., volume) of an alert can bemodified based on a state of a device (e.g., on a first or seconddevice). For example, if the noise classification of a device wasmedium, then a volume of an alert might set so as to be heard by someonein that noise environment. However, if the noise classification was low,the volume might be lower (but still audible by the user) so as not tostartle the user or other people so much. In another example, the alertcould just vibrate the device when the noise classification is silent(and potentially when state is in-pocket), as the user is still likelyto sense the alert. The level of vibration could increase if a motionclassification is running, than if the motion classification isstationary, so as to increase a likelihood of being felt by the user.

IX. User Input (Gestures)

In some embodiments, an alert system (e.g., including classifiers, stateengine, and alert engine) can be configured to allow a user to change astate by interacting with the device. In this manner, a user can knowhow to directly affect a change in state so as to suppress or dismiss analert. Such user input can allow the user to easily provide the desiredfunctionality. For example, the user could flip the phone face down(e.g., suppress or dismiss) or face up (e.g., to allow alerts). Such anaction can be considered a gesture.

As examples of setting suppression, a user might put the device in amounted state when driving, thereby suppressing all alerts or justsecond alerts, which may be configurable by the user. Putting the deviceface down can act to suppress one or more types of alerts. Such userinput can also indicate how an alert is to be provided, e.g., face downmeans that alerts should be provided via vibrate and/or audio and notvia display. Other input information can be used to determine how toprovide the alert, e.g., based on noise classification. A gyroscope isan example of a sensor that can determine whether the face is down. Whenthe device is rotated again to have a face visible, then an alert can beprovided in response to that change ins state.

The user input can include input to a second device. For example, asecond device may be operating in a mode to track health data (e.g.,heart rate), and thus a state may be exercise. The launching of a healthapplication can also provide such user input for a state of a seconddevice, which can be used to determine a state of the first device.Either device can determine to suppress the first alert or second alertbased on this state, and provide an alert after the user is doneexercising, e.g., a change in state determined by a change in the healthmonitoring, which may be turned off by the user at the end of anexercise session.

As examples of dismissing an alert, a user may have seen the first alertand not want to have a second alert output. For example, a use may benear a phone that is motionless on a table, and see the alert. The usercould select a button to dismiss a second alert, but also could change astate of the device by moving the device in a particular manner, such asshaking or flipping the device over. Flipping the device over to see adisplay screen can indicate that the user has seen the first alert, andthus the second alert can be dismissed, without the user having toselect a button or interact with the screen.

Similarly, if the device was removed from a bag after the first alert,the device can presume that the user saw the first alert and thusdismiss the second alert. The dismissal might occur upon the change instate from in an enclosure to not being in a disclosure (where such adetermination can occur before a predetermined time for providing thesecond alert). In another embodiment, the dismissal can require that thedevice is placed back into a disclosure, e.g., back into a pocket.

X. Example Device

FIG. 9 is a block diagram of an example device 900, which may be amobile device. Device 900 generally includes computer-readable medium902, a processing system 904, an Input/Output (I/O) subsystem 906,wireless circuitry 908, and audio circuitry 910 including speaker 950and microphone 952. These components may be coupled by one or morecommunication buses or signal lines 903. Device 900 can be any portableelectronic device, including a handheld computer, a tablet computer, amobile phone, laptop computer, tablet device, media player, personaldigital assistant (PDA), a key fob, a car key, an access card, amulti-function device, a mobile phone, a portable gaming device, or thelike, including a combination of two or more of these items.

It should be apparent that the architecture shown in FIG. 9 is only oneexample of an architecture for device 900, and that device 900 can havemore or fewer components than shown, or a different configuration ofcomponents. The various components shown in FIG. 9 can be implemented inhardware, software, or a combination of both hardware and software,including one or more signal processing and/or application specificintegrated circuits.

Wireless circuitry 908 is used to send and receive information over awireless link or network to one or more other devices' conventionalcircuitry such as an antenna system, an RF transceiver, one or moreamplifiers, a tuner, one or more oscillators, a digital signalprocessor, a CODEC chipset, memory, etc. Wireless circuitry 908 can usevarious protocols, e.g., as described herein.

Wireless circuitry 908 is coupled to processing system 904 viaperipherals interface 916. Interface 916 can include conventionalcomponents for establishing and maintaining communication betweenperipherals and processing system 904. Voice and data informationreceived by wireless circuitry 908 (e.g., in speech recognition or voicecommand applications) is sent to one or more processors 918 viaperipherals interface 916. One or more processors 918 are configurableto process various data formats for one or more application programs 934stored on medium 902.

Peripherals interface 916 couple the input and output peripherals of thedevice to processor 918 and computer-readable medium 902. One or moreprocessors 918 communicate with computer-readable medium 902 via acontroller 920. Computer-readable medium 902 can be any device or mediumthat can store code and/or data for use by one or more processors 918.Medium 902 can include a memory hierarchy, including cache, main memoryand secondary memory.

Device 900 also includes a power system 942 for powering the varioushardware components. Power system 942 can include a power managementsystem, one or more power sources (e.g., battery, alternating current(AC)), a recharging system, a power failure detection circuit, a powerconverter or inverter, a power status indicator (e.g., a light emittingdiode (LED)) and any other components typically associated with thegeneration, management and distribution of power in mobile devices.

In some embodiments, device 900 includes a camera 944. In someembodiments, device 900 includes sensors 946. Sensors can includeaccelerometers, compass, gyrometer, pressure sensors, audio sensors,light sensors, barometers, and the like. Sensors 946 can be used tosense location aspects, such as auditory or light signatures of alocation.

In some embodiments, device 900 can include a GPS receiver, sometimesreferred to as a GPS unit 948. A mobile device can use a satellitenavigation system, such as the Global Positioning System (GPS), toobtain position information, timing information, altitude, or othernavigation information. During operation, the GPS unit can receivesignals from GPS satellites orbiting the Earth. The GPS unit analyzesthe signals to make a transit time and distance estimation. The GPS unitcan determine the current position (current location) of the mobiledevice. Based on these estimations, the mobile device can determine alocation fix, altitude, and/or current speed. A location fix can begeographical coordinates such as latitudinal and longitudinalinformation.

One or more processors 918 run various software components stored inmedium 902 to perform various functions for device 900. In someembodiments, the software components include an operating system 922, acommunication module (or set of instructions) 924, a location module (orset of instructions) 926, an alert module 928, and other applications(or set of instructions) 934, such as a car locator app and a navigationapp.

Operating system 922 can be any suitable operating system, includingiOS, Mac OS, Darwin, RTXC, LINUX, UNIX, OS X, WINDOWS, or an embeddedoperating system such as VxWorks. The operating system can includevarious procedures, sets of instructions, software components and/ordrivers for controlling and managing general system tasks (e.g., memorymanagement, storage device control, power management, etc.) andfacilitates communication between various hardware and softwarecomponents.

Communication module 924 facilitates communication with other devicesover one or more external ports 936 or via wireless circuitry 908 andincludes various software components for handling data received fromwireless circuitry 908 and/or external port 936. External port 936(e.g., USB, FireWire, Lightning connector, 60-pin connector, etc.) isadapted for coupling directly to other devices or indirectly over anetwork (e.g., the Internet, wireless LAN, etc.).

Location/motion module 926 can assist in determining the currentposition (e.g., coordinates or other geographic location identifier) andmotion of device 900. Modern positioning systems include satellite basedpositioning systems, such as Global Positioning System (GPS), cellularnetwork positioning based on “cell IDs,” and Wi-Fi positioningtechnology based on a Wi-Fi networks. GPS also relies on the visibilityof multiple satellites to determine a position estimate, which may notbe visible (or have weak signals) indoors or in “urban canyons.” In someembodiments, location/motion module 926 receives data from GPS unit 948and analyzes the signals to determine the current position of the mobiledevice. In some embodiments, location/motion module 926 can determine acurrent location using Wi-Fi or cellular location technology. Forexample, the location of the mobile device can be estimated usingknowledge of nearby cell sites and/or Wi-Fi access points with knowledgealso of their locations. Information identifying the Wi-Fi or cellulartransmitter is received at wireless circuitry 908 and is passed tolocation/motion module 926. In some embodiments, the location modulereceives the one or more transmitter IDs. In some embodiments, asequence of transmitter IDs can be compared with a reference database(e.g., Cell ID database, Wi-Fi reference database) that maps orcorrelates the transmitter IDs to position coordinates of correspondingtransmitters, and computes estimated position coordinates for device 900based on the position coordinates of the corresponding transmitters.Regardless of the specific location technology used, location/motionmodule 926 receives information from which a location fix can bederived, interprets that information, and returns location information,such as geographic coordinates, latitude/longitude, or other locationfix data.

Alert module 928 (or alert system) can include various sub-modules orsystems, e.g., as described above in FIGS. 2 and 3.

The one or more applications 934 on the mobile device can include anyapplications installed on the device 900, including without limitation,a browser, address book, contact list, email, instant messaging, wordprocessing, keyboard emulation, widgets, JAVA-enabled applications,encryption, digital rights management, voice recognition, voicereplication, a music player (which plays back recorded music stored inone or more files, such as MP3 or AAC files), etc.

There may be other modules or sets of instructions (not shown), such asa graphics module, a time module, etc. For example, the graphics modulecan include various conventional software components for rendering,animating and displaying graphical objects (including without limitationtext, web pages, icons, digital images, animations and the like) on adisplay surface. In another example, a timer module can be a softwaretimer. The timer module can also be implemented in hardware. The timemodule can maintain various timers for any number of events.

The I/O subsystem 906 can be coupled to a display system (not shown),which can be a touch-sensitive display. The display displays visualoutput to the user in a GUI. The visual output can include text,graphics, video, and any combination thereof. Some or all of the visualoutput can correspond to user-interface objects. A display can use LED(light emitting diode), LCD (liquid crystal display) technology, or LPD(light emitting polymer display) technology, although other displaytechnologies can be used in other embodiments.

In some embodiments, I/O subsystem 906 can include a display and userinput devices such as a keyboard, mouse, and/or track pad. In someembodiments, I/O subsystem 906 can include a touch-sensitive display. Atouch-sensitive display can also accept input from the user based onhaptic and/or tactile contact. In some embodiments, a touch-sensitivedisplay forms a touch-sensitive surface that accepts user input. Thetouch-sensitive display/surface (along with any associated modulesand/or sets of instructions in medium 902) detects contact (and anymovement or release of the contact) on the touch-sensitive display andconverts the detected contact into interaction with user-interfaceobjects, such as one or more soft keys, that are displayed on the touchscreen when the contact occurs. In some embodiments, a point of contactbetween the touch-sensitive display and the user corresponds to one ormore digits of the user. The user can make contact with thetouch-sensitive display using any suitable object or appendage, such asa stylus, pen, finger, and so forth. A touch-sensitive display surfacecan detect contact and any movement or release thereof using anysuitable touch sensitivity technologies, including capacitive,resistive, infrared, and surface acoustic wave technologies, as well asother proximity sensor arrays or other elements for determining one ormore points of contact with the touch-sensitive display.

Further, the I/O subsystem can be coupled to one or more other physicalcontrol devices (not shown), such as pushbuttons, keys, switches, rockerbuttons, dials, slider switches, sticks, LEDs, etc., for controlling orperforming various functions, such as power control, speaker volumecontrol, ring tone loudness, keyboard input, scrolling, hold, menu,screen lock, clearing and ending communications and the like. In someembodiments, in addition to the touch screen, device 900 can include atouchpad (not shown) for activating or deactivating particularfunctions. In some embodiments, the touchpad is a touch-sensitive areaof the device that, unlike the touch screen, does not display visualoutput. The touchpad can be a touch-sensitive surface that is separatefrom the touch-sensitive display or an extension of the touch-sensitivesurface formed by the touch-sensitive display.

In some embodiments, some or all of the operations described herein canbe performed using an application executing on the user's device.Circuits, logic modules, processors, and/or other components may beconfigured to perform various operations described herein. Those skilledin the art will appreciate that, depending on implementation, suchconfiguration can be accomplished through design, setup,interconnection, and/or programming of the particular components andthat, again depending on implementation, a configured component might ormight not be reconfigurable for a different operation. For example, aprogrammable processor can be configured by providing suitableexecutable code; a dedicated logic circuit can be configured by suitablyconnecting logic gates and other circuit elements; and so on.

Any of the software components or functions described in thisapplication may be implemented as software code to be executed by aprocessor using any suitable computer language such as, for example,Java, C, C++, C#, Objective-C, Swift, or scripting language such as Perlor Python using, for example, conventional or object-orientedtechniques. The software code may be stored as a series of instructionsor commands on a computer readable medium for storage and/ortransmission. A suitable non-transitory computer readable medium caninclude random access memory (RAM), a read only memory (ROM), a magneticmedium such as a hard-drive or a floppy disk, or an optical medium suchas a compact disk (CD) or DVD (digital versatile disk), flash memory,and the like. The computer readable medium may be any combination ofsuch storage or transmission devices.

Computer programs incorporating various features of the presentinvention may be encoded on various computer readable storage media;suitable media include magnetic disk or tape, optical storage media suchas compact disk (CD) or DVD (digital versatile disk), flash memory, andthe like. Computer readable storage media encoded with the program codemay be packaged with a compatible device or provided separately fromother devices. In addition program code may be encoded and transmittedvia wired optical, and/or wireless networks conforming to a variety ofprotocols, including the Internet, thereby allowing distribution, e.g.,via Internet download. Any such computer readable medium may reside onor within a single computer product (e.g. a hard drive, a CD, or anentire computer system), and may be present on or within differentcomputer products within a system or network. A computer system mayinclude a monitor, printer, or other suitable display for providing anyof the results mentioned herein to a user.

Although the invention has been described with respect to specificembodiments, it will be appreciated that the invention is intended tocover all modifications and equivalents within the scope of thefollowing claims.

1.-20. (canceled)
 21. A computer-implemented method of providing alertsusing a device, the computer-implemented method comprising, at thedevice: receiving an input from a user to enable suppression of a firstalert; receiving a list of states for which suppression of the firstalert is to occur; determining, by one or more sensors, a current stateof the device; storing the current state of the device; receiving anotification; retrieving the current state of the device that is stored;and determining whether to suppress the first alert in response to thecurrent state of the device that is stored being on the list of states.22. The method according to claim 21, further comprising determiningwhether to not suppress the first alert in response to the current stateof the device not being on the list of states; and in response todetermining to not suppress the first alert, outputting the first alert.23. The method according to claim 21, wherein the list of statescomprise a state in which the user is operating a vehicle.
 24. Themethod according to claim 21, further comprising determining an updatedcurrent state of the device, wherein the updated current state of thedevice is based on a change in a classification of the current state.25. The method according to claim 24, wherein the classificationcomprises one of a type of motion, a noise category, and an enclosurestorage category.
 26. The method according to claim 25, wherein theenclosure storage category is determined by a pressure sensor thatdetects whether the device is inside an enclosed space.
 27. The methodaccording to claim 24, wherein in response to determining the updatedcurrent state of the device, determining whether to suppress the firstalert in response to the updated current state of the device being on asecond list of states.
 28. The method according to claim 24, wherein inresponse to determining the updated current state of the device,determining whether to suppress the first alert in response to theupdated current state of the device being on the list of states.
 29. Themethod according to claim 21, wherein the list of states comprises atransition state comprising a pair of states.
 30. The method accordingto claim 29, wherein the pair of states comprises a previous state ofthe device paired with a subsequent state of the device.
 31. The methodaccording to claim 21, further comprising determining that there is anupdated current state of the device based on a probability value of anoccurrence of the updated current state.
 32. A computer productcomprising a non-transitory computer readable medium storing a pluralityof instructions that when executed control a device including one ormore processors, the instructions comprising: receiving an input from auser to enable suppression of a first alert; receiving a list of statesfor which suppression of the first alert is to occur; determining, byone or more sensors, a current state of the device; storing the currentstate of the device; receiving a notification; retrieving the currentstate of the device that is stored; and determining whether to suppressthe first alert in response to the current state of the device that isstored being on the list of states.
 33. The computer product accordingto claim 32, further comprising determining whether to not suppress thefirst alert in response to the current state of the device not being onthe list of states; and in response to determining to not suppress thefirst alert, outputting the first alert.
 34. The computer productaccording to claim 32, further comprising determining an updated currentstate of the device, wherein the updated current state of the device isbased on a change in a classification of the current state.
 35. Thecomputer product according to claim 34, wherein the classificationcomprises one of a type of motion, a noise category, and an enclosurestorage category.
 36. The computer product according to claim 35,wherein the enclosure storage category is determined by a pressuresensor that detects whether the device is inside an enclosed space. 37.A device comprising: a storage for storing suppressed alerts; one ormore sensors; and one or more processors configured to: receive an inputfrom a user to enable suppression of a first alert; receive a list ofstates for which suppression of the first alert is to occur; determine,by one or more sensors, a current state of the device; store the currentstate of the device; receive a notification; retrieve the current stateof the device that is stored; and determine whether to suppress thefirst alert in response to the current state of the device that isstored being on the list of states.
 38. The device according to claim37, further comprising determining an updated current state of thedevice, wherein the updated current state of the device is based on achange in a classification of the current state.
 39. The deviceaccording to claim 38, wherein the classification comprises one of atype of motion, a noise category, and an enclosure storage category. 40.The device according to claim 39, wherein the enclosure storage categoryis determined by a pressure sensor that detects whether the device isinside an enclosed space.